package com.hsurosy.infrastructure.persistent.dao;

import com.hsurosy.infrastructure.persistent.po.RuleTreeNodeLine;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author Hsu琛君珩
 * @Date 2024-10-20 1:43
 * @Description 规则树节点连线 Dao
 * @Version: v1.0.0
 */
@Mapper
public interface IRuleTreeNodeLineDao {

    /**
     * 根据规则树ID查询所有节点连线信息
     *
     * @param treeId tree_lock_1
     * @return
     * [
     *     RuleTreeNodeLine(id=1, treeId="tree_lock_1", ruleNodeFrom="rule_lock", ruleNodeTo="rule_stock", ruleLimitType="EQUAL", ruleLimitValue="ALLOW", ...),
     *     RuleTreeNodeLine(id=2, treeId="tree_lock_1", ruleNodeFrom="rule_lock", ruleNodeTo="rule_luck_award", ruleLimitType="EQUAL", ruleLimitValue="TAKE_OVER", ...)
     * ]
     */
    List<RuleTreeNodeLine> queryRuleTreeNodeLineListByTreeId(String treeId);

}
